Optimal. Leaf size=87 \[ -\frac{(b c-a d)^3}{a^2 b^2 (a+b x)}+\frac{(b c-a d)^2 (a d+2 b c) \log (a+b x)}{a^3 b^2}-\frac{c^2 \log (x) (2 b c-3 a d)}{a^3}-\frac{c^3}{a^2 x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0746623, antiderivative size = 87, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.056, Rules used = {88} \[ -\frac{(b c-a d)^3}{a^2 b^2 (a+b x)}+\frac{(b c-a d)^2 (a d+2 b c) \log (a+b x)}{a^3 b^2}-\frac{c^2 \log (x) (2 b c-3 a d)}{a^3}-\frac{c^3}{a^2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 88
Rubi steps
\begin{align*} \int \frac{(c+d x)^3}{x^2 (a+b x)^2} \, dx &=\int \left (\frac{c^3}{a^2 x^2}+\frac{c^2 (-2 b c+3 a d)}{a^3 x}-\frac{(-b c+a d)^3}{a^2 b (a+b x)^2}+\frac{(-b c+a d)^2 (2 b c+a d)}{a^3 b (a+b x)}\right ) \, dx\\ &=-\frac{c^3}{a^2 x}-\frac{(b c-a d)^3}{a^2 b^2 (a+b x)}-\frac{c^2 (2 b c-3 a d) \log (x)}{a^3}+\frac{(b c-a d)^2 (2 b c+a d) \log (a+b x)}{a^3 b^2}\\ \end{align*}
Mathematica [A] time = 0.0761272, size = 79, normalized size = 0.91 \[ \frac{\frac{a (a d-b c)^3}{b^2 (a+b x)}+\frac{(b c-a d)^2 (a d+2 b c) \log (a+b x)}{b^2}+c^2 \log (x) (3 a d-2 b c)-\frac{a c^3}{x}}{a^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 141, normalized size = 1.6 \begin{align*} -{\frac{{c}^{3}}{{a}^{2}x}}+3\,{\frac{{c}^{2}\ln \left ( x \right ) d}{{a}^{2}}}-2\,{\frac{{c}^{3}\ln \left ( x \right ) b}{{a}^{3}}}+{\frac{\ln \left ( bx+a \right ){d}^{3}}{{b}^{2}}}-3\,{\frac{\ln \left ( bx+a \right ){c}^{2}d}{{a}^{2}}}+2\,{\frac{b\ln \left ( bx+a \right ){c}^{3}}{{a}^{3}}}+{\frac{a{d}^{3}}{{b}^{2} \left ( bx+a \right ) }}-3\,{\frac{c{d}^{2}}{b \left ( bx+a \right ) }}+3\,{\frac{{c}^{2}d}{a \left ( bx+a \right ) }}-{\frac{{c}^{3}b}{{a}^{2} \left ( bx+a \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.02324, size = 178, normalized size = 2.05 \begin{align*} -\frac{a b^{2} c^{3} +{\left (2 \, b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} x}{a^{2} b^{3} x^{2} + a^{3} b^{2} x} - \frac{{\left (2 \, b c^{3} - 3 \, a c^{2} d\right )} \log \left (x\right )}{a^{3}} + \frac{{\left (2 \, b^{3} c^{3} - 3 \, a b^{2} c^{2} d + a^{3} d^{3}\right )} \log \left (b x + a\right )}{a^{3} b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.35384, size = 392, normalized size = 4.51 \begin{align*} -\frac{a^{2} b^{2} c^{3} +{\left (2 \, a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d + 3 \, a^{3} b c d^{2} - a^{4} d^{3}\right )} x -{\left ({\left (2 \, b^{4} c^{3} - 3 \, a b^{3} c^{2} d + a^{3} b d^{3}\right )} x^{2} +{\left (2 \, a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d + a^{4} d^{3}\right )} x\right )} \log \left (b x + a\right ) +{\left ({\left (2 \, b^{4} c^{3} - 3 \, a b^{3} c^{2} d\right )} x^{2} +{\left (2 \, a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d\right )} x\right )} \log \left (x\right )}{a^{3} b^{3} x^{2} + a^{4} b^{2} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 1.99722, size = 250, normalized size = 2.87 \begin{align*} \frac{- a b^{2} c^{3} + x \left (a^{3} d^{3} - 3 a^{2} b c d^{2} + 3 a b^{2} c^{2} d - 2 b^{3} c^{3}\right )}{a^{3} b^{2} x + a^{2} b^{3} x^{2}} + \frac{c^{2} \left (3 a d - 2 b c\right ) \log{\left (x + \frac{- 3 a^{2} b c^{2} d + 2 a b^{2} c^{3} + a b c^{2} \left (3 a d - 2 b c\right )}{a^{3} d^{3} - 6 a b^{2} c^{2} d + 4 b^{3} c^{3}} \right )}}{a^{3}} + \frac{\left (a d - b c\right )^{2} \left (a d + 2 b c\right ) \log{\left (x + \frac{- 3 a^{2} b c^{2} d + 2 a b^{2} c^{3} + \frac{a \left (a d - b c\right )^{2} \left (a d + 2 b c\right )}{b}}{a^{3} d^{3} - 6 a b^{2} c^{2} d + 4 b^{3} c^{3}} \right )}}{a^{3} b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20783, size = 223, normalized size = 2.56 \begin{align*} -\frac{d^{3} \log \left (\frac{{\left | b x + a \right |}}{{\left (b x + a\right )}^{2}{\left | b \right |}}\right )}{b^{2}} + \frac{b c^{3}}{a^{3}{\left (\frac{a}{b x + a} - 1\right )}} - \frac{{\left (2 \, b^{2} c^{3} - 3 \, a b c^{2} d\right )} \log \left ({\left | -\frac{a}{b x + a} + 1 \right |}\right )}{a^{3} b} - \frac{\frac{b^{5} c^{3}}{b x + a} - \frac{3 \, a b^{4} c^{2} d}{b x + a} + \frac{3 \, a^{2} b^{3} c d^{2}}{b x + a} - \frac{a^{3} b^{2} d^{3}}{b x + a}}{a^{2} b^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]